n = int(input())
A = list(map(int, input().split()))
B = [0] * n #要用0初始化后才能赋值 B= 【】 不能直接 B[i] = 1
for i in range(n):
    for j in range(i+1, n):
        if A[i] < A[j]:
            B[i] = j+1 #从1计数
            break
print(*B)
